package org.pearl.thread.demo.test002;

import org.openjdk.jol.info.ClassLayout;

/**
 * Created by TD on 2021/4/12
 */
public class TicketWindowTest {
    public static void main(String[] args) {
        TicketWindow ticketWindow = new TicketWindow();

        Thread t1 = new Thread(ticketWindow, "001");
        Thread t2 = new Thread(ticketWindow, "002");
        Thread t3 = new Thread(ticketWindow, "003");

        String printable = ClassLayout.parseInstance(t1).toPrintable();
        System.out.println(printable);

        t1.start();
        t2.start();
        t3.start();
    }
}
